<?php
/**
 * licenses : MIT
 * creatTime: 2020/5/13
 * author : weblinuxgame
 * filename: SchemaCommentTraits.php
 */

namespace App\Core\Traits\Database;

use Illuminate\Support\Facades\DB;

/**
 * 表注释
 * Trait SchemaCommentTrait
 * @package App\Core\Traits\Database
 */
trait SchemaCommentTrait
{
    // 表注释
    public function comment($table, $comment)
    {
        DB::statement("ALTER TABLE `{$table}` comment'{$comment}'");
    }
}
